CFLAGS=-g -W
LIBS=-lX11 -lglut -lGL -lGLU -lm
CXX:=gcc

SRCS = $(wildcard *.c)
BUILD = $(patsubst %.c, %, $(SRCS))
.c:.h
	$(CXX) -o $@ $< $(CFLAGS) $(LIBS)

all: $(BUILD)
clean:
	@rm -f $(BUILD)
